using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TEST {
    public class Test_DialogueSegment : MonoBehaviour
    {
        // Start is called before the first frame update
        void Start()
        {
            List<string> list = FileManager.ReadTextFile("test/testText_seg.txt");
            foreach(string line in list)
            {
                DIALOGUE.DIALOGUE_LINE dLine = DIALOGUE.DialogueParser.Parse(line);
                //foreach(DIALOGUE.DIALOGUE_LINE.)
                foreach(DIALOGUE.DL_DIALOGUE_DATA.DIALOGUE_SEGMENT seg in dLine.dialogue.segments)
                {
                    Debug.Log($"dialoge:'{seg.dialogue}';\nstart signal:'{seg.startSignal}';\nsignal delay:'{seg.signalDelay}'");
                }
            }
        }

        // Update is called once per frame
        void Update()
        {

        }
    }
}
